from collections import Counter

test = "As email scams are on the rise and with the consequences being identity theft, it is important that you increase your awareness and learn to protect yourself from these fraudulent attacks."
words = test.split()

num = 0
for i in words:
    if ',' in i or '!' in i or '.' in i:
        words[num] = i[:-1]
    num += 1


print(Counter(words).most_common(10))

